package com.project.controller;


import com.project.bean.ReplyBean;
import com.project.service.IReplyService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("reply")
public class replyController {
    @Autowired
    private IReplyService2 service;

    @RequestMapping("addR")
    public String addR(String title, String content, int postId, int userId){
        ReplyBean r = new ReplyBean(title,content,postId,userId);
        service.add(r);
        return "ok";

    }

}
